package com.star.config.api;


import com.star.config.api.contract.query.UserTenantConfigQuery;
import com.star.config.api.contract.vo.UserTenantConfigVO;
import com.star.config.api.service.ConfigApi;
import com.star.config.biz.UserTenantConfigService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * 配置中心api
 *
 * @author zhouhengzhe
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "ConfigApiController控制器")
public class ConfigApiController implements ConfigApi {

    private final UserTenantConfigService userTenantConfigService;

    @Override
    public UserTenantConfigVO getUserTenantConfig(UserTenantConfigQuery query) {
        return userTenantConfigService.getUserTenantConfig(query);
    }
}
